﻿using System.Collections.Generic;

namespace ZZDingTalkSDK.ZZDingTalkResponse
{
    public class AuthScopesV2Response
    {
        /// <summary>
        /// 	授予的条线通讯录人员列表
        /// </summary>
        public List<StripLineAddressEmployeeScope> StripLineAddressEmployeeScopes { get; set; }

        /// <summary>
        /// 	授予的条线通讯录范围列表
        /// </summary>
        public List<StripLineAddressScope> StripLineAddressScopes { get; set; }

        /// <summary>
        /// 企业授权的员工编码列表。返回值为授权人员编码的并集。
        /// </summary>
        public List<string> UserVisibleScopes { get; set; }

        /// <summary>
        /// 企业授权的部门编码列表。返回值为授权部门编码的并集 (设置“全部员工”时，返回授权的部门编码为根部门ID，员工userid列表为空)
        /// </summary>
        public List<string> DeptVisibleScopes { get; set; }
    }

    public class StripLineAddressScope
    {
        /// <summary>
        /// 条线通讯录code
        /// </summary>
        public string DomainCode { get; set; }

        /// <summary>
        /// 条线通讯录节点编码列表
        /// </summary>
        public List<string> StripLineAddressCodes { get; set; }
    }

    public class StripLineAddressEmployeeScope
    {
        /// <summary>
        /// 条线通讯录code
        /// </summary>
        public string DomainCode { get; set; }

        /// <summary>
        /// 条线通讯录人员编码列表
        /// </summary>
        public List<string> EmployeeCodes { get; set; }
    }
}